package com.geuso.xingdutch.opposites;

import android.app.ListFragment;
import android.os.Bundle;

import com.geuso.xingdutch.R;
import com.geuso.xingdutch.activity.DefaultActivity;

public class OppositesActivity extends DefaultActivity {

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.main);
		getFragmentManager().beginTransaction()
					.add(R.id.container, new OppositesOverviewFragment()).commit();
		
	}
	
	public static class OppositesOverviewFragment extends ListFragment {

		public OppositesOverviewFragment() {
		}

		@Override
		public void onActivityCreated(Bundle savedInstanceState){
			super.onActivityCreated(savedInstanceState);
			
			setListAdapter(new OppositesListAdapter(getActivity(), 
					R.layout.dutch_number_row, OppositesData.opposites));
			getListView().setDividerHeight(6);
		}
	}
}
